package com.itm.eventos.utils;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.border.Border;

public class Constantes {
	
	public static String TIPO_VIDEO			 		= 	"vfw://0";			//"vfw:Microsoft WDM Image Capture (Win32):0";
	public static String TIPO_AUDIO			 		= 	"javasound://"; 	//"dsound://"
	public static String FRAME_GRABBING_CONTROL		= 	"javax.media.control.FrameGrabbingControl";
	public static String FORMATO_FECHA				= 	"ddMMyyyy_HHmmss";
	
	// Ficheros de configuracion
	public static String FICH_PROP_AUDIO			= 	"audio.properties";
	public static String FICH_PROP_VIDEO			= 	"video.properties";
	public static String FICH_PROP_SERVER			= 	"server.properties";
	public static String FICH_PROP_VENTANA			= 	"ventana.properties";
	
	// Rutas ficheros
	public static String LOCATION_FOTOS				=	"photos";
	public static String LOCATION_SCREEN			=	"screens";
	public static String LOCATION_SOUND				=	"sounds";
	public static String LOCATION_VIDEO				=	"videos";
	public static String LOCATION_ICONOS			=	"iconos";
	public static String ICONO_APLICACION			=   "icono.jpg";
	
	// Nombres iconos
	public static String RUTA_CAPTURAS 				= 	"capturas";
	public static String RUTA_CONF	 				= 	"conf";
	public static String NOMBRE_MENSAJE				=	"mail";
	public static String NOMBRE_FOTO				=	"photo";
	public static String NOMBRE_SCREEN				=	"screen";
	public static String NOMBRE_SOUND				=	"sound";
	public static String NOMBRE_VIDEO				=	"video";
	
	public static String EXT_BLUE					=	"_blue";
	public static String EXT_RED					=	"_red";
	public static String EXT_LIGHT					=	"_light";
	
	// Estilos
	public static Color COLOR_VENTANA				=	new Color(153, 153, 153);
	public static Dimension DIMENSION_VENTANA		=	new Dimension(650, 700); //(360, 480)
	public static Dimension DIMENSION_VENTANA_LOGIN	=	new Dimension(335, 141);
	public static Border ESTILO_BORDE 				= 	BorderFactory.createLineBorder(Constantes.COLOR_VENTANA, 2);
	public static Font FUENTE_MENSAJES				=	new java.awt.Font("Dialog", 0, 10);
	
	// Parametros ficheros
	public static String EXT_CAPTURA_WEB			= ".jpg";
	public static String EXT_CAPTURA_SCREEN			= ".png";
	public static String EXT_CAPTURA_SONIDO			= ".wav";
	
	// Parametros captura
	public static String TIPO_CODIFICACION = "YUV";
	public static Dimension TAMANO_CAPTURA = new Dimension(640, 480); 	//(320, 240)
	public static int LONG_MAX_DATOS = 153600; 							// 460800
	public static float TASA_IMAGENES = 15.0f;
	
	// Parametros sonido
	public static String VAR_sampleRate 			= "sampleRate";			//the number of samples per second
	public static String VAR_sampleSizeInBits		= "sampleSizeInBits";	//the number of bits in each sample
	public static String VAR_channels				= "channels";			//the number of channels (1 for mono, 2 for stereo)
	public static String VAR_signed					= "signed";				//indicates whether the data is signed or unsigned
	public static String VAR_bigEndian				= "signed";				//indicates whether the data for a single sample is stored in big-endian byte order (false means little-endian)
	
	// Parametros webcam
//	private static String defaultVideoDeviceName 	= "Logitech USB Video Camera";
//	private static String defaultAudioDeviceName 	= "DirectSoundCapture";
//	private static String defaultVideoFormatString 	= "size=176x144, encoding=yuv, maxdatalength=38016";
//	private static String defaultAudioFormatString 	= "linear, 16000.0 hz, 8-bit, mono, unsigned";
	
	//Parametros Server
	public static String SERVER_IP					= 	"ip";
	public static String SERVER_TMPDIRECTORY		= 	"tmpdirectory";
	public static String SERVER_DIRECTORY			= 	"directory";
}